/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.domain.req;

import com.xy.lang.validation.UpdateChecks;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2022-1-20
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class SaveManufactureTaskRequest {

    /**
     * 生产任务Id
     */
    @NotNull(groups = UpdateChecks.class)
    private Long manufactureTaskId;
    /**
     * 生产订单Id
     */
    @NotNull
    private Long manufactureOrderId;
    /**
     * 生产人用户Id
     */
    @NotNull
    private Long manufactureUserId;
    /**
     * 生产人用户姓名
     */
    @NotBlank
    private String manufactureUserName;
    /**
     * 生产记录模板Id
     */
    private Long recordTemplateId;
    /**
     * 状态：0-已取消，10-待生产，20-开始生产，30-已记录，40-已核查
     */
    private Integer status;
    /**
     * 备注
     */
    private String memo;
    /**
     * 货品明细
     */
    private List<SaveManufactureTaskGoodsRequest> goodsList;

    /**
     * 记录明细
     */
    private List<SaveManufactureTaskRecordRequest> recordList;
    /**
     * 设备明细
     */
    private List<SaveManufactureTaskEquipmentRequest> equipmentList;
}
